Skip to content

Upgrade Pest to ^3.0 for PHP 8.5 compatibility#298

Merged
ziimk merged 1 commit into
masterfrom
fix-php85-pest-v3
Jun 5, 2026
Merged

Upgrade Pest to ^3.0 for PHP 8.5 compatibility#298
ziimk merged 1 commit into
masterfrom
fix-php85-pest-v3

Conversation

@ziimk
Copy link
Copy Markdown
Contributor

@ziimk ziimk commented Jun 5, 2026

Related Tickets & Documents

Description

pestphp/pest ^2.0 pins PHPUnit 10.x. There is no brianium/paratest release that supports both PHPUnit 10.x and PHP 8.5, so composer install can no longer resolve the dev dependencies on PHP 8.5 (which the latest composer image now ships).

Upgrading to pestphp/pest ^3.0 resolves cleanly (PHPUnit 11.x, all PHP 8.5 compatible). The existing functional test suite uses only stable Pest syntax and passes unchanged — no v2→v3 breaking changes apply.

Type of PR

  • 🐛 Bug Fix

Manual testing

Ran composer install followed by composer test on PHP 8.5: dependencies resolve and all tests pass.

Automated tests added?

  • 🙅 N/A

Pest ^2.0 pins PHPUnit 10.x, which has no paratest release compatible
with PHP 8.5. Composer can no longer resolve the dev dependencies on
PHP 8.5. Pest ^3.0 resolves cleanly (PHPUnit 11.x) and the existing
test suite passes unchanged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 5, 2026 10:57
@ziimk ziimk requested a review from a team as a code owner June 5, 2026 10:57
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the development test runner dependency to resolve Composer dependency resolution on PHP 8.5 by moving from Pest v2 (PHPUnit 10) to Pest v3 (PHPUnit 11).

Changes:

  • Bump pestphp/pest from ^2.0 to ^3.0 in require-dev.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread composer.json
@ziimk ziimk merged commit 1e1a7bf into master Jun 5, 2026
1 check passed
@ziimk ziimk deleted the fix-php85-pest-v3 branch June 5, 2026 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants